<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="application/xhtml; charset=UTF-8" />
<meta name="Robots" content="all" />
<meta name="Author" content="RickyXu" />
<meta name="Keywords" content="mysite,php,technology" />
<meta name="description" content="我的地盘，听我的">
<link rel="shortcut icon" href="images/icon.ico">
<title>Ricky Online</title>
</head>

<body><!--  onload="javascript:document.fors.caption.focus();" -->
<!-- begin submit -->
<script   language="javascript">
function checks(){
   if(document.fors.caption.value==""){
     alert("请输入标题!!");
     document.fors.caption.focus();
     return false;
   }else if (document.fors.content.value==""){
     alert("请输入内容!!");
     document.fors.content.focus();
     return false;
   }if (document.fors.links.value==""){
     alert("请输入链接地址!!");
     document.fors.links.focus();
     return false;
   }
   return true;
}
</script>
<div>
<span style="color:red;font-size:20px;">{msg}</span>
<form name='fors' id="fors" method='POST' action='' onSubmit="return checks();">
<p>
   <table>
      <tr>
         <td>分类：</td>
         <td>
            <select name="types" id="types">
               <option value="">选择分类</option>
               <option value="2">小应用</option>
               <option value="3">日用</option>
               <option value="4">开心</option>
               <option value="5">经典</option>
               <option value="6">技术</option>
            </select>
         </td>
      </tr>
      <tr>
         <td>标题：</td>
         <td align="left"><input name="caption" type="text" id="caption" value="" size="50" /></td>
      </tr>
      <tr>
         <td>内容：</td>
         <td><textarea name="content" cols="90" rows="16" id="content"></textarea></td>
      </tr>
      <tr>
         <td>链接：</td>
         <td><input name="links" type="text" id="links" value="" size="60"/></td>
      </tr>
   </table>
   <br>
   <br>
   <input type="submit" value=" 发 表 "/>  
   <input type="button" value=" 首 页 " onClick="window.location='/index.php'"/>
</p>
</form>
</div>
<div style="display:none">
<script src="http://s87.cnzz.com/stat.php?id=1882933&web_id=1882933&show=pic" language="JavaScript" charset="gb2312"></script>
<script src="http://s99.cnzz.com/stat.php?id=2016815&web_id=2016815" language="JavaScript"></script>
</div>
<!-- end submit -->
<!-- begin list -->
<style>
table{
   border:1px solid #000;
}
table tr td{
   border:1px solid #000;
   margin:0px;
   padding:5px;
}
</style>
<div>
{del_msg}
<table>
   <col width="40px" align="center">
   <col width="200px">
   <col width="*">
   <col width="170px">
   <col width="100px" align="center">
   <tr align="center"><td>ID</td><td>标题</td><td>内容</td><td>链接</td><td>操作</td></tr>
   <!-- begin con -->
   <tr><td>{con_id}</td><td>{con_title}</td><td>{con_content}</td><td>{con_link}</td><td><a href="?ac=edit&id={id}">编辑</a> | <a href="?target=list&ac=del&id={id}">删除</a></td></tr>
   <!-- end con -->
</table>
</div>
<!-- end list -->
</body>
</html>